$(function () { 
    $(".nav").on("click","a:eq(7)",function () { 
        $(".nav").toggleClass("active");
     })
     
     $.ajax({
         url:"http://mmb.ittun.com/api/getindexmenu",
         type:"GET",
         success:function(response){
            console.log(response);
            var navshtml = template("navs",response);
            $(".nav").html(navshtml);
         }
     })

     $.ajax({
        url:"http://mmb.ittun.com/api/getmoneyctrl",
        type:"GET",
        success:function(response){
           console.log(response);
           var navshtml = template("proinfo",response);
           $(".product li").html(navshtml);
        }
    })

   
        $(".returntop").click(function() {
            $("html,body").animate({scrollTop:0}, 500);
        }); 
       
 })

